﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FindFile
{
    public class NameMatch
    {
        internal NameMatch(PhysicalFile physicalFile) : this(physicalFile, new int[0]) { }

        internal NameMatch(PhysicalFile physicalFile, IEnumerable<int> matchedCharacterIndices) 
        {
            this.PhysicalFile = physicalFile;
            this.MatchedCharacterIndices = new List<int>(matchedCharacterIndices);
        }

        public string Name
        {
            get { return PhysicalFile.Name; }
        }

        readonly public IList<int> MatchedCharacterIndices;
        readonly public PhysicalFile PhysicalFile;
    }
}
